package com.semanticbits.codejam.model

import ariba.appcore.Permission
import ariba.appcore.annotations.AnonymousAccess
import ariba.appcore.annotations.DefaultAccess
import ariba.ui.meta.annotations.Trait
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import org.compass.annotations.Searchable

/**
 * Created by IntelliJ IDEA.
 * User: carlos.perez
 * Date: 1/14/11
 * Time: 7:20 AM
 * To change this template use File | Settings | File Templates.
 */
@Entity @Searchable(root=false)
@DefaultAccess @AnonymousAccess([Permission.ClassOperation.view])
class Awards {

    @Id @GeneratedValue
    private Long id

    String name
    int points
    String prize

}
